﻿using LiteDB;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace FileManagerSystem.DbInfos
{
    /// <summary>
    /// 顶级目录实体（文件夹上传时用）
    /// </summary>
    public class DirectoryInf
    {
        /// <summary>
        /// 唯一主键
        /// </summary>
        [BsonId]
        public Guid Id { get; set; }

        /// <summary>
        /// TODO：!!父目录唯一主键
        /// </summary>
        ///public Guid PId { get; set; }

        /// <summary>
        /// 文件夹名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 文件夹路径 虚拟目录
        /// </summary>
        public string AbstractDirPath { get; set; }

        /// <summary>
        /// 上传时间 会在初次insert时插入，不用刻意给值
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}
